import request from '../util/request.js'
const baseUrl = "store/product/order/"

export function confirm(data) {
	return request.get(baseUrl + "confirm", data, {
		noAuth: false
	})
}

export function createOrder(data) {
	return request.post(baseUrl + "create", data, {
		noAuth: false
	})
}

export function payOrder(data) {
	return request.post(baseUrl + "pay", data, {
		noAuth: false
	})
}

export function orderCount(data) {
	return request.get(baseUrl + "count", data, {
		noAuth: false
	})
}



export function getOrderList(data) {
	return request.get(baseUrl + "list", data, {
		noAuth: false
	})
}


export function statisticalPayPrice() {
	return request.get(baseUrl + "statistical/payPrice", {}, {
		noAuth: false
	})
}

export function cancelOrder(data) {
	return request.get(baseUrl + "cancel", data, {
		noAuth: false
	})
}

export function detail(data) {
	return request.get(baseUrl + "detail", data, {
		noAuth: false
	})
}

export function deliveryInfo(data) {
	return request.get(baseUrl + "deliveryInfo", data, {
		noAuth: false
	})
}

export function take(data) {
	return request.get(baseUrl + "take", data, {
		noAuth: false
	})
}



export function computedPrice(data) {
	return request.get(baseUrl + "computed", data, {
		noAuth: false
	})
}


export function payOrderAgain(data) {
	return request.post(baseUrl + "pay/again", data, {
		noAuth: false
	})
}


export function deleteOrder(data) {
	return request.get(baseUrl + "delete", data, {
		noAuth: false
	})
}
